<%@ page import="java.util.ArrayList" %>
<%@ page import="com.bdqn.pojo.UserPojo" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/9/1 0001
  Time: 9:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <%
        ArrayList<UserPojo>list=new ArrayList();
        for (int i = 0; i <= 10; i++) {
            UserPojo pojo=new UserPojo();
            pojo.setName("名字"+i);e
            pojo.setId(i);
            list.add(pojo);
        }
        request.setAttribute("obj",list);
    %>
</head>
<body>
<table>
    <c:forEach var="o" items="${obj}">
        <tr>
            <td>${o.id}</td>
            <td>${o.name}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
